﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchVolunteer.ascx.vb"
    Inherits="WebForm_ImportVolunteer_SearchVolunteer" %>

<%@ Register src="~/Webform/CommonControl/VolunteerQueryControl.ascx" tagname="VolunteerQueryControl" tagprefix="uc1" %>

<%--<script src="<%=Me.ResolveUrl("~/js/JScript.js") %>" type="text/javascript"></script>--%>

<table>
    <tr>
        <td>
            <div align="center">
                <table>
                    <tr>
                        <td>
                            <uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" />
                        </td>
                        <td valign="bottom">
                            <asp:Button ID="btnQuery" runat="server" Text="<%$ Resources:Query %>" />
                            <asp:Button ID="btnBlackQuery" runat="server" Text="<%$ Resources:BlackQuery %>" />
                            <asp:Button ID="btnExport" runat="server" meta:resourcekey="btnExport" Visible="false" />
                        </td>
                    </tr>
<%--                    <tr>
                        <td align="right">
                            <asp:Label ID="lblVolunteerStatus" runat="server"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlVolunteerStatus" runat="server"></asp:DropDownList>
                        </td>                        
                    </tr>
--%>                                            
                </table>
            </div>
            
        </td>
    </tr>
    <tr>
        <td>
            <My:MyGridView ID="GridView_Volunteers" runat="server" SkinID="pager" DataKeyNames="VolunteerID,VOrganizationID"
                AllowPaging="True" AllowSorting="True" AllowHoverEffect="False" AllowHoverSelect="False"
                MySortDirection="Ascending" EmptyDataText="<%$ Resources:NoData %>" AutoGenerateColumns="False">
                <Columns>
                  <My:VolunteerIDBoundField DataField="VolunteerID" HeaderText="<%$ Resources:VolunteerID %>"
            ReadOnly="True" SortExpression="v.VolunteerID" />
                  <%--  <asp:BoundField DataField="VolunteerID" HeaderText="<%$ Resources:VolunteerID %>"
                        SortExpression="v.VolunteerID" />--%>
                    <asp:BoundField DataField="VolunteerName" HeaderText="<%$ Resources:VolunteerName %>"
                        SortExpression="v.VolunteerName" />
                    <asp:BoundField DataField="VOrganizationName" HeaderText="<%$ Resources:VOrganizationID %>" SortExpression="oo.VOrganizationName" />
                    <asp:BoundField DataField="OfficePhone" HeaderText="<%$ Resources:OfficePhone %>" SortExpression="v.OfficePhone" />
                    <asp:BoundField DataField="TrainingBHour" meta:resourcekey="bfTrainingBHour" SortExpression="vs.TrainingBHour" />
                    <asp:BoundField DataField="TrainingSHour" meta:resourcekey="bfTrainingSHour" SortExpression="vs.TrainingSHour" />
                    <asp:BoundField DataField="TrainingWHour" meta:resourcekey="bfTrainingWHour" SortExpression="vs.TrainingWHour" />
                    <asp:BoundField DataField="WorkHour" meta:resourcekey="bfWorkHour" SortExpression="vs.WorkHour" />
                    <asp:BoundField DataField="OpenWorkHour" meta:resourcekey="bfOpenWorkHour" SortExpression="vs.OpenWorkHour" />
                    <asp:TemplateField HeaderText="<%$ Resources:BlackList %>">
                        <itemtemplate>
                            <asp:Label id="lbBlackList" runat="server" Text='<%# Eval("BlackList") %>' ></asp:Label>
                        </itemtemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="EffectiveWorkHour" meta:resourcekey="bfEffectiveWorkHour" SortExpression="EffectiveWorkHour" Visible="False" />                    
                    <asp:TemplateField>
                        <itemtemplate>
                <asp:LinkButton ID="lbtnEdit" CommandName="Select" runat="server"  Text="<%$ Resources:Edit%>"></asp:LinkButton>
            
</itemtemplate>
                    </asp:TemplateField>
                </Columns>
            </My:MyGridView>
    
        </td>
    </tr>
</table>
